package com.lanchetech.dao;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import com.lanchetech.entity.CommonCommentGoods;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CommonCommentGoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CommonCommentGoods record);

    int insertSelective(CommonCommentGoods record);

    CommonCommentGoods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CommonCommentGoods record);

    int updateByPrimaryKey(CommonCommentGoods record);

    List<CommonCommentGoods> findAllByUserId(@Param("userId")Long userId);

    CommonCommentGoods findOneByUserIdAndCommentId(@Param("userId")Long userId,@Param("commentId")Long commentId);


}